projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96df9c7
)
usb: mass-storage: Build warning fixes for 64-bit
author
Thierry Reding
<
[email protected]
>
Fri, 20 Mar 2015 11:41:25 +0000
(12:41 +0100)
committer
Marek Vasut
<
[email protected]
>
Tue, 14 Apr 2015 03:47:48 +0000
(
05:47
+0200)
Fix a printf format mismatch warning seen on 64-bit builds.
Cc: Ćukasz Majewski <
[email protected]
>
Cc: Marek Vasut <
[email protected]
>
Signed-off-by: Thierry Reding <
[email protected]
>
Acked-by: Lukasz Majewski <
[email protected]
>
Tested-by: Lukasz Majewski <
[email protected]
>
Reviewed-by: Lukasz Majewski <
[email protected]
>
drivers/usb/gadget/f_mass_storage.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/f_mass_storage.c
b/drivers/usb/gadget/f_mass_storage.c
index e045957d07238862f23c80cd7e90845ae14e8447..71fd49db7f246df33a602f42cfcda0d50d74bcec 100644
(file)
--- a/
drivers/usb/gadget/f_mass_storage.c
+++ b/
drivers/usb/gadget/f_mass_storage.c
@@
-973,7
+973,7
@@
static int do_write(struct fsg_common *common)
/* If an error occurred, report it and its position */
if (nwritten < amount) {
- printf("nwritten:%
d amount:%d
\n", nwritten,
+ printf("nwritten:%
zd amount:%u
\n", nwritten,
amount);
curlun->sense_data = SS_WRITE_ERROR;
curlun->info_valid = 1;